package com.maas.util.mybatis.jpa.littlenb.service;


import com.littlenb.mybatisjpa.annotation.InsertDefinition;
import com.littlenb.mybatisjpa.annotation.UpdateDefinition;
import com.littlenb.mybatisjpa.support.Certainty;
import com.littlenb.mybatisjpa.support.Constant;
import com.littlenb.mybatisjpa.type.SelectorStrategy;

import com.maas.util.mybatis.jpa.littlenb.annotation.mapper.InsertExDefinition;
import com.maas.util.mybatis.jpa.littlenb.annotation.mapper.SelectDefinition;
import com.maas.util.mybatis.jpa.littlenb.conditions.ConditionsMapper;
import com.maas.util.mybatis.jpa.littlenb.conditions.service.impl.MapperManagerServiceImpl;
import com.maas.util.mybatis.jpa.littlenb.mapper.JpaIBaseMapper;
import com.maas.util.mybatis.jpa.littlenb.mapper.User;


import java.util.List;

/**
 * jpa 基础类
 * 实现 jpa 功能，减少 编辑 sql 语句
 * 提供基础的增删查改功能
 * //TODO 现在每个方法必须传参数，改为可以不传参数
 * @author sway.li
 **/
public abstract class JpaIBaseService<M extends JpaIBaseMapper<T>, T> extends MapperManagerServiceImpl<T> {
  public M mapper;
  public  ConditionsMapper conditionsMapper;


  /**
   * 注入
   */
  protected M getMapper() {
    return mapper;
  }
  public void setMapper(M mapper) {
    this.mapper = mapper;
  }

  public ConditionsMapper geConditionsMapper() {
    return conditionsMapper;
  }
  public void setConditionsMapper(ConditionsMapper conditionsMapper){
    this.conditionsMapper = conditionsMapper;
  }


}
